package com.peas.platform.module.icims.budget.archives.controller.vo;

import com.peas.platform.common.core.vo.BaseVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.*;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel("明细开支范围")
public class BudgetItemRangeVo extends BaseVo {

    @ApiModelProperty(value = "明细开支范围编码", notes = "")
    @Size(max = 50, message = "明细开支范围编码不能超过50个字符")
    private String itemRangeCode;

    @ApiModelProperty(value = "明细开支范围名称", notes = "")
    @NotBlank(message = "明细开支范围名称不能为空")
    @Size(max = 200, message = "明细开支范围名称不能超过200个字符")
    private String itemRangeName;

    // 1:有效，0:无效
    @ApiModelProperty(value = "状态", notes = "")
    @NotBlank(message = "状态不能为空")
    @Size(max = 20, message = "状态不能超过20个字符")
    private String state;

}
